<%--
  Created by IntelliJ IDEA.
  User: 石增
  Date: 2021/8/31
  Time: 14:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <script>
        function add() {
            location.href="/student/addStudent.jsp";
        }
    </script>
</head>
<body>
<input type="button" value="新增" onclick=add() ><br>
<hr>
<table border="1" cellspacing="0" width="70%">
    <tr>
        <th>学号</th>
        <th>学生姓名</th>
        <th>学生生日</th>
        <th>数学成绩</th>
        <th>英语成绩</th>
        <th>班级</th>
        <th>学生地址</th>

    </tr>

    <c:forEach items="${student}" var="stu">
        <tr align="center">
            <td>${stu.id}</td>
            <td>${stu.sname}</td>
            <td>${stu.birthday}</td>
            <td>${stu.math}</td>
            <td>${stu.english}</td>
            <td>${stu.className}</td>
            <td>${stu.address}</td>
            <td><a href="/student/selectById?id=${stu.id}">修改</a> <a href="/student/deleteStu?id=${stu.id}">删除</a></td>
        </tr>

    </c:forEach>



</table>


</body>
</html>
